package com.cheng.example.excel.easyexcel.util;

public class RunUtil {
    private long startTime;

    public static  RunUtil getInstance() {
        return new RunUtil();
    }
    public RunUtil start() {
        startTime=System.currentTimeMillis();
        return this;
    }
    public void end() {
        System.out.println( (System.currentTimeMillis()-startTime)/1000);
    }

    public static void main(String[] args) throws InterruptedException {
        RunUtil runUtil=RunUtil.getInstance().start();
        Thread.sleep(1000);
        runUtil.end();
}
}
